Federico Mena Quintero [Mon, 15 Mar 2004 18:12:51 +0000 (18:12 +0000)]
Only show the title string in OPEN/SELECT_FOLDER mode as it's
Mon Mar 15 12:51:17 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (location_popup_handler): Only show
the title string in OPEN/SELECT_FOLDER mode as it's open-specific.
Put a blank title for SAVE/CREATE_FOLDER; we are in string freeze,
so we'll fix it for 2.4.1 as #137272.
* gtk/gtkpathbar.c (gtk_path_bar_scroll_down): calculate
space_available correctly for RTL mode. w/o this, you can't
scroll down again. Fixes #137021.
2004-03-15 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkpathbar.c (gtk_path_bar_scroll_up): Queue a resize.
(gtk_path_bar_scroll_down): Likewise.
Owen Taylor [Mon, 15 Mar 2004 17:11:28 +0000 (17:11 +0000)]
Store the position of the file part and use that in
Mon Mar 15 11:40:43 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilechooserentry.c: Store the position of the
file part and use that in check_completion_callback()
and match_selected_callback() to figure out where
to operate on the text, rather than recomputing the
information.
Jonathan Blandford [Mon, 15 Mar 2004 16:27:45 +0000 (16:27 +0000)]
set changing_folders to be true so we don't trigger a callback when we
Mon Mar 15 10:35:19 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): set
changing_folders to be true so we don't trigger a callback when we
remove the selection
(shortcuts_add_bookmarks): ditto
Owen Taylor [Mon, 15 Mar 2004 15:50:13 +0000 (15:50 +0000)]
s/seperator/separator/.
Mon Mar 15 10:47:18 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilechooserentry.c: s/seperator/separator/.
Funda Wang [Mon, 15 Mar 2004 15:32:38 +0000 (15:32 +0000)]
Updated Simplified Chinese translation
Kjartan Maraas [Mon, 15 Mar 2004 15:22:05 +0000 (15:22 +0000)]
Updated Norwegian translation.
2004-03-15 Kjartan Maraas <kmaraas@gnome.org>
* no.po: Updated Norwegian translation.
Owen Taylor [Mon, 15 Mar 2004 14:57:54 +0000 (14:57 +0000)]
Check for Control-Tab or Control-Shift-Tab, not any Control-key as a
Mon Mar 15 09:54:36 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_focus): Check for
Control-Tab or Control-Shift-Tab, not any Control-key
as a current event ... handles the case where a dialog
is triggered from a control accelerator better.
Jonathan Blandford [Mon, 15 Mar 2004 14:10:45 +0000 (14:10 +0000)]
implement correctly. (completion_match_func): Allow surpressing popdowns.
Mon Mar 15 08:48:48 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserentry.c (match_selected_callback): implement
correctly.
(completion_match_func): Allow surpressing popdowns.
(maybe_append_seperator_to_path): New function to add a separator
item to a display_name. Bad hack.
(check_completion_callback): Implement select-ahead as an idle.
(add_completion_idle): new function to handle select-ahead
(gtk_file_chooser_entry_do_insert_text): starf the select-ahead
idle.
(gtk_file_chooser_entry_focus): Override tab for completion.
(gtk_file_chooser_entry_activate): commit select_ahead when
activated.
* gtk/gtkfilechooserdefault.c (location_popup_handler): grab the
appropriate widget for the mode.
Tor Lillqvist [Mon, 15 Mar 2004 14:10:08 +0000 (14:10 +0000)]
[Win32] Look up installation prefix at run-time, replace prefix in
2004-03-15 Tor Lillqvist <tml@iki.fi>
* queryloaders.c (main): [Win32] Look up installation prefix at
run-time, replace prefix in PIXBUF_LIBDIR with that. (#106141)
Tor Lillqvist [Mon, 15 Mar 2004 13:07:04 +0000 (13:07 +0000)]
Merges from stable branch that had been left out. (#136282, J. Ali Harlow)
2004-03-15 Tor Lillqvist <tml@iki.fi>
Merges from stable branch that had been left out. (#136282, J. Ali
Harlow)
Changes for run-time lookup of installation location on Win32:
* Makefile.am (INCLUDES): Define GTK_PREFIX as $(prefix).
* gdk-pixbuf-io.c (get_sysconfdir): New function, look up
installation location at runtime and deduce GTK_SYSCONFDIR
from it.
(get_toplevel): Similar, for the top-level installation directory.
(correct_prefix): Replace compile-time prefix with run-time
prefix.
(get_libdir): Remove, not used any longer.
(gdk_pixbuf_io_init): Call correct_prefix() on Win32.
* queryloaders.c (query_module): [Win32] Change backslahses into
slashes in path.
Tor Lillqvist [Mon, 15 Mar 2004 11:55:55 +0000 (11:55 +0000)]
Don't just copy the whole GdkGCWin32 with a single assignment, that
2004-03-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkgc-win32.c (gdk_gc_copy): Don't just copy the whole
GdkGCWin32 with a single assignment, that overwrites GObject's
private data (for instance ref_count). (#137012, John Ehresman)
Mark McLoughlin [Mon, 15 Mar 2004 09:07:59 +0000 (09:07 +0000)]
remove the unused "lowest_folder" GtkFileChooserDefault member. Leftover
2004-03-15 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkfilechooserdefault.c: remove the unused "lowest_folder"
GtkFileChooserDefault member. Leftover from my original patch
for bug #136987.
Jonathan Blandford [Mon, 15 Mar 2004 06:54:34 +0000 (06:54 +0000)]
Rewritten to use the GtkEntryCompletion API more correctly. Now pops down
Mon Mar 15 01:50:28 2004 Jonathan Blandford <jrb@gnome.org>
* gtkfilechooserentry.c: Rewritten to use the GtkEntryCompletion
API more correctly. Now pops down the dropdown well.
* gtkfilesystem.c (gtk_file_path_get_type): New boxed type for the
FilePath.
* test/testfilechooser.c: disable preview widget temporarily.
It's not representative of a good preview widget.
Federico Mena Quintero [Mon, 15 Mar 2004 06:51:58 +0000 (06:51 +0000)]
Renamed from shortcuts_unselect_all(); now selects the row that
2004-03-15 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_find_current_folder):
Renamed from shortcuts_unselect_all(); now selects the row that
corresponds to the current folder, if any. Fixes #135916.
* gtk/gtkpathbar.h: Added prototypes for _gtk_path_bar_up() and
_gtk_path_bar_down().
Federico Mena Quintero [Mon, 15 Mar 2004 06:29:33 +0000 (06:29 +0000)]
Surround the drag-outside-to-remove-bookmarks code with "#if 0" blocks;
2004-03-15 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c: Surround the
drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
too unstable right now.
Owen Taylor [Mon, 15 Mar 2004 06:09:40 +0000 (06:09 +0000)]
Implement local_only by filtering the shortcuts and bookmarks list by
Sun Mar 14 23:36:15 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilechooserdefault.c: Implement local_only by
filtering the shortcuts and bookmarks list by
gtk_file_system_path_to_filename (file_system, path) != NULL.
(#132894)
* gtk/gtkfilesystem.c (gtk_file_system_path_is_local): Add
a convenience function, may by interesting to push to the
file system vtable later for performance.
Federico Mena Quintero [Mon, 15 Mar 2004 05:42:51 +0000 (05:42 +0000)]
Allow the path to be NULL, so that people can ask for information about a
2004-03-14 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystem.c (gtk_file_folder_get_info): Allow the path
to be NULL, so that people can ask for information about a
parent-less file system root (e.g. get_info (get_folder ("/"), NULL)).
* gtk/gtkfilesystemunix.c (gtk_file_folder_unix_get_info): Allow
the condition describe above.
* gtk/gtkfilechooserdefault.c (get_file_info): Allow getting
information of root paths.
* gtk/gtkpathbar.c (_gtk_path_bar_set_path): Handle root paths correctly.
Owen Taylor [Mon, 15 Mar 2004 03:53:20 +0000 (03:53 +0000)]
Mention GtkTreeViewSearchEqualFunc return value oddity here as well.
Sun Mar 14 22:32:36 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
GtkTreeViewSearchEqualFunc return value oddity here as well.
* gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
to get a string to compare to, return TRUE (no match), not
FALSE (match). Handle %NULL string values gracefully.
Remove unused variable. (#135962, Mark McLoughlin)
Owen Taylor [Mon, 15 Mar 2004 03:33:26 +0000 (03:33 +0000)]
Fix typo
Owen Taylor [Mon, 15 Mar 2004 03:31:58 +0000 (03:31 +0000)]
Document #GtkTreeViewSearchEqualFunc and its backwards return value.
Sun Mar 14 22:27:59 2004 Owen Taylor <otaylor@redhat.com>
* gtk/tmpl/gtktreeview.sgml (linkend): Document
#GtkTreeViewSearchEqualFunc and its backwards return
value.
Morten Welinder [Mon, 15 Mar 2004 02:26:51 +0000 (02:26 +0000)]
Kill g_prints.
Owen Taylor [Mon, 15 Mar 2004 02:12:08 +0000 (02:12 +0000)]
Add _gtk_path_bar_up()/ _gtk_path_bar_down().
Sun Mar 14 21:03:15 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkpathbar.[ch]: Add _gtk_path_bar_up()/
_gtk_path_bar_down().
* gtk/gtkfilechooserdefault.c: Use _gtk_path_bar_up()/
_gtk_path_bar_down() as bindings for Alt-Up
and new Alt-Down. (Partly based on a patch by
Mark McLoughlin, #136987)
Federico Mena Quintero [Mon, 15 Mar 2004 02:09:22 +0000 (02:09 +0000)]
Fixes #136185, patch by Morten Welinder, with some changes.
2004-03-14 Federico Mena Quintero <federico@ximian.com>
Fixes #136185, patch by Morten Welinder, with some changes.
* gtk/gtkfilechooserdefault.c (check_is_folder): New helper function.
(shortcuts_insert_path): Check the path first with check_is_folder().
(gtk_file_chooser_default_set_current_folder): Likewise.
(gtk_file_chooser_default_add_shortcut_folder): Likewise.
(browse_widgets_create): Unref the size group.
* gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder):
Handle the case where the file exists but it is not a directory.
(IconType): Add value for ICON_UNDECIDED.
(struct stat_info_entry): New structure to hold a file's struct
stat, its MIME type and its icon type.
(struct _GtkFileFolderUnix): Added a hash of struct
stat_info_entry, and flags to remember which info types we've read
so far.
(get_icon_type): Use a helper function for the icons-from-stat
types.
(gtk_file_system_unix_render_icon): Use the cached file info.
(gtk_file_folder_unix_get_info): Put the info in the cache.
(gtk_file_system_unix_get_folder): Create the cache of file info
structures.
* gtk/gtkfilesystem.c (gtk_file_info_set_display_name): Handle the
case where display_name is the same as the existing
info->display_name.
Owen Taylor [Mon, 15 Mar 2004 02:03:59 +0000 (02:03 +0000)]
#136672, reported by Christian Persch; fixes based on a patch by Soeren
Sun Mar 14 19:26:48 2004 Owen Taylor <otaylor@redhat.com>
#136672, reported by Christian Persch; fixes based
on a patch by Soeren Sandmann.
* gtk/gtkmenu.c: Change the handling of mixed gridded
and non-gridded menu items; the old method was causing
major performance problems even with the "avoid relayout
on destruction" hack put in recently.
Now we first lay out the gridded items and then put the
non-gridded items into empty rows / after the gridded items.
Layout is done in a central menu_shell_ensure_layout(). Also
avoid emitting property notifications when we initially
insert or attach items.
* gtk/gtkmenushell.[ch] gtk/gtkmenu.c: Stop setting the
unused menu_shell->menu_flag, and document it as unused
in the header.
* tests/testactions.c: Add a test of creating/removing
lots of items.
* test/testgtk.c: Add some more cruft to the menu test.
Matthias Clasen [Mon, 15 Mar 2004 01:32:20 +0000 (01:32 +0000)]
Add some docs.
Denis Lackovic [Sun, 14 Mar 2004 22:05:58 +0000 (22:05 +0000)]
*** empty log message ***
Jonathan Blandford [Sun, 14 Mar 2004 20:44:10 +0000 (20:44 +0000)]
always use the match_func, even if text_column is set.
Sun Mar 14 15:38:39 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkentrycompletion.c (gtk_entry_completion_visible_func):
always use the match_func, even if text_column is set.
Morten Welinder [Sun, 14 Mar 2004 20:20:03 +0000 (20:20 +0000)]
Don't turn "/" into "". (gtk_file_system_unix_get_folder): Use the same
2004-03-14 Morten Welinder <terra@gnome.org>
* gtk/gtkfilesystemunix.c (get_parent_dir): Don't turn "/" into
"".
(gtk_file_system_unix_get_folder): Use the same value for lookup
as for insertion. Make sure we have a directory.
Morten Welinder [Sun, 14 Mar 2004 19:50:11 +0000 (19:50 +0000)]
Damn cvs.
Morten Welinder [Sun, 14 Mar 2004 19:47:20 +0000 (19:47 +0000)]
Don't crash on NULL path; don't crash on NULL error.
2004-03-14 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c (error_dialog): Don't crash on NULL
path; don't crash on NULL error.
Hans Breuer [Sun, 14 Mar 2004 16:02:33 +0000 (16:02 +0000)]
gtk/gtkcombobox.c : prototype cell_view_sync_cells() before first usage
2004-03-14 Hans Breuer <hans@breuer.org>
gtk/gtkcombobox.c : prototype cell_view_sync_cells() before
first usage
gtk/makefile.msc.in : updated 'gtk_public_h_sources'
tests/makefile.msc : added testspinbutton
Maxim Dziumanenko [Sun, 14 Mar 2004 11:48:00 +0000 (11:48 +0000)]
Updated Ukrainian tanslation
2004-03-14 Maxim Dziumanenko <mvd@mylinux.com.ua>
* uk.po: Updated Ukrainian tanslation
Matthias Clasen [Sun, 14 Mar 2004 00:01:23 +0000 (00:01 +0000)]
Align this function with gtk_tree_view_column_set_cell_data(); call the
Sun Mar 14 01:01:18 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_set_cell_data): Align
this function with gtk_tree_view_column_set_cell_data();
call the cell data func after setting the attributes.
Sun Mar 14 01:00:08 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_expose): One more try;
make sure not to call gtk_cell_view_set_cell_data() when
displayed_row is NULL.
Owen Taylor [Sat, 13 Mar 2004 23:28:14 +0000 (23:28 +0000)]
When not wrapping, do the offset of the line for justification ourselves.
Sat Mar 13 18:13:13 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): When not
wrapping, do the offset of the line for justification ourselves.
(#120256, Felipe Heidrich)
Matthias Clasen [Sat, 13 Mar 2004 23:01:49 +0000 (23:01 +0000)]
Support the model-less use of GtkCellView shown in testcombo.c.
Sun Mar 14 00:03:18 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_expose): Support the
model-less use of GtkCellView shown in testcombo.c.
Tor Lillqvist [Sat, 13 Mar 2004 22:26:05 +0000 (22:26 +0000)]
Don't undefine HAVE_MONITOR_INFO when compiling with gcc. Mingw's headers
2004-03-13 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO
when compiling with gcc. Mingw's headers do have the required
definitions.
* gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing
filled polygons, don't draw the outline, similarily as
draw_rectangle(). Apparently GTK and GIMP don't use
gdk_draw_polygon() much (or always draw the outline, too), as this
has gone undetected for so long. Thanks to Bruce Hochstetler.
Arafat Medini [Sat, 13 Mar 2004 21:06:20 +0000 (21:06 +0000)]
Updated Arabic translation.
2004-03-13 Arafat Medini <lumina@silverpen.de>
* ar.po: Updated Arabic translation.
Owen Taylor [Sat, 13 Mar 2004 20:45:15 +0000 (20:45 +0000)]
Remove the window from the toplevel_list here rather in destroy. While
Sat Mar 13 15:19:17 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_destroy): Remove
the window from the toplevel_list here rather in destroy.
While this is theoretically speaking wrong, it fits
in better with the current reality that destroyed
widgets are not reusable. (#126808, Michael Natterer)
Matthias Clasen [Sat, 13 Mar 2004 20:44:14 +0000 (20:44 +0000)]
Don't do anything beyond clearing to the background if there is no active
Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
beyond clearing to the background if there is no active row.
(#137066, reported by Owen Taylor)
Matthias Clasen [Sat, 13 Mar 2004 20:33:45 +0000 (20:33 +0000)]
Pop down the list when an item is selected via the keyboard.
Sat Mar 13 21:37:44 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_list_key_press): Pop down the
list when an item is selected via the keyboard.
Anders Carlsson [Sat, 13 Mar 2004 19:15:21 +0000 (19:15 +0000)]
Remove trailing slashes in path names.
2004-03-13 Anders Carlsson <andersca@gnome.org>
* gtk/gtkfilesystemunix.c: (remove_trailing_slash),
(gtk_file_system_unix_get_folder),
(gtk_file_system_unix_create_folder), (get_parent_dir),
(gtk_file_system_unix_get_parent), (gtk_file_folder_unix_get_info):
Remove trailing slashes in path names.
Owen Taylor [Sat, 13 Mar 2004 18:27:56 +0000 (18:27 +0000)]
Make this a total no-op when the new or old parent is destroyed. (#134230,
Sat Mar 13 12:17:16 2004 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
this a total no-op when the new or old parent is
destroyed. (#134230, patch from Soeren Sandmann)
* gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
For foreign windows in our heirarchy, call
_gdk_windowing_window_destroy_foreign (window) and skip
all the normal destruction logic.
* gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
Move code to request destruction of a foreign window
code into a separate _gdk_windowing_window_destroy_foreign().
* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
Call GDK_WINDOW_DISPLAY() on the wrapper not on the
impl. (Also from Soeren's patch)
Owen Taylor [Sat, 13 Mar 2004 16:27:36 +0000 (16:27 +0000)]
For GTK_IS_PLUG toplevels, call gdk_window_get_origin() not
Sat Mar 13 10:49:46 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For
GTK_IS_PLUG toplevels, call gdk_window_get_origin()
not gtk_window_get_position, as a hackround for not
having accurate notification of window position for
embedded windows. (#136112, Dan Winship)
Owen Taylor [Sat, 13 Mar 2004 15:37:18 +0000 (15:37 +0000)]
Revert last change; it causes problems for pastes from other applications;
Sat Mar 13 10:34:03 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextview.c gtk/gtktextbuffer.c: Revert last change;
it causes problems for pastes from other applications; see
comments in bugzilla for #81880.
Denis Lackovic [Sat, 13 Mar 2004 11:32:48 +0000 (11:32 +0000)]
*** empty log message ***
Christophe Merlet [Sat, 13 Mar 2004 09:09:03 +0000 (09:09 +0000)]
Updated French translation.
Paisa Seeluangsawat [Sat, 13 Mar 2004 05:40:54 +0000 (05:40 +0000)]
Updated Thai translation.
2004-03-12 Paisa Seeluangsawat <paisa@users.sf.net>
* th.po: Updated Thai translation.
Matthias Clasen [Sat, 13 Mar 2004 01:54:04 +0000 (01:54 +0000)]
Fix middle button pasting in the TextView (#81880, reported by Evert
Sat Mar 13 02:55:51 2004 Matthias Clasen <maclas@gmx.de>
Fix middle button pasting in the TextView (#81880, reported
by Evert Verhellen, patch by Paolo Borelli):
* gtk/gtktextview.c (gtk_text_view_button_press_event): Retrieve
the insert mark and move the cursor to it making sure of also
scroll the window if needed.
* gtk/gtktextbuffer.c (pre_paste_prep): Move the insert mark
to the insertion point.
Matthias Clasen [Sat, 13 Mar 2004 00:36:27 +0000 (00:36 +0000)]
Add a remove implemenatation which restores the cell_view when the custom
Sat Mar 13 01:38:55 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_remove): Add a remove
implemenatation which restores the cell_view when the custom
child is removed. (#136555, Owen Taylor)
Matthias Clasen [Fri, 12 Mar 2004 23:23:28 +0000 (23:23 +0000)]
Keep the cell_list in a consistent state while iterating over it, since
Sat Mar 13 00:07:51 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_layout_clear):
Keep the cell_list in a consistent state while iterating over it,
since clear_attributes() also iterates over it. (another instance
of #136585, Morten Welinder)
Christian Neumair [Fri, 12 Mar 2004 23:22:21 +0000 (23:22 +0000)]
Updated German translation.
Owen Taylor [Fri, 12 Mar 2004 22:51:13 +0000 (22:51 +0000)]
Swap GTK_ARROW_LEFT and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
Fri Mar 12 17:20:15 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT
and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,
Semion Chichelnitsky)
* gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed
gtk_toolbar_direction-changed handlers and explicit
flipping of GtkArrow widgets.
Soeren Sandmann [Fri, 12 Mar 2004 22:41:32 +0000 (22:41 +0000)]
Clamp the new size to the screen. Part of bug 129020.
Fri Mar 12 23:37:15 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkfilechooserdialog.c
(file_chooser_widget_default_realized_size_changed): Clamp the
new size to the screen. Part of bug 129020.
Owen Taylor [Fri, 12 Mar 2004 20:48:51 +0000 (20:48 +0000)]
Create the event_window at the right size using the same logic as in
Fri Mar 12 15:06:44 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkexpander.c (gtk_expander_realize): Create the
event_window at the right size using the same logic as
in size_allocate. (#136994, Niklas Knuttson)
Federico Mena Quintero [Fri, 12 Mar 2004 20:38:54 +0000 (20:38 +0000)]
Don't ignore the return value of gtk_widget_activate().
2004-03-12 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the
return value of gtk_widget_activate().
(gtk_window_activate_default): Likewise. Fixes #137008.
* gtk/gtkfilechooserdialog.c (response_cb): Act on positive
response IDs we recognize, rather than bailing out on cancellation
ones. Fixes #136237; patch by Olivier Andrieu
<oliv__a@users.sourceforge.net>.
(file_chooser_widget_file_activated): If the dialog doesn't have a
default widget, try to find a suitable response widget on our own.
People should *really* be using gtk_dialog_set_default_response(),
but this is to help lazy programmers.
* gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New
internal function.
(get_response_data): Add a "create" argument so that we don't
unconditionally create the response data.
Morten Welinder [Fri, 12 Mar 2004 18:25:01 +0000 (18:25 +0000)]
Make sure to include <config.h> (#137001)
2004-03-12 Morten Welinder <terra@gnome.org>
* *.c: Make sure to include <config.h> (#137001)
Morten Welinder [Fri, 12 Mar 2004 15:51:25 +0000 (15:51 +0000)]
Ssssh!
Morten Welinder [Fri, 12 Mar 2004 15:49:22 +0000 (15:49 +0000)]
Add new testspinbutton.c
2004-03-12 Morten Welinder <terra@gnome.org>
* tests/Makefile.am: Add new testspinbutton.c
Funda Wang [Fri, 12 Mar 2004 15:10:56 +0000 (15:10 +0000)]
Updated Simplified Chinese translation
Zygimantas Berucka [Fri, 12 Mar 2004 12:19:20 +0000 (12:19 +0000)]
Updated Lithuanian translation.
2004-03-12 Zygimantas Berucka <uid0@akl.lt>
* lt.po: Updated Lithuanian translation.
Dmitry Mastrukov [Fri, 12 Mar 2004 10:32:03 +0000 (10:32 +0000)]
ru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>.
Paisa Seeluangsawat [Fri, 12 Mar 2004 05:40:37 +0000 (05:40 +0000)]
Updated Thai translation.
2004-03-11 Paisa Seeluangsawat <paisa@users.sf.net>
* th.po: Updated Thai translation.
Federico Mena Quintero [Fri, 12 Mar 2004 00:13:16 +0000 (00:13 +0000)]
Put the trash icon on the right for LTR locales, or on the left for RTL.
2004-03-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
Put the trash icon on the right for LTR locales, or on the left
for RTL.
(shortcuts_drag_motion_cb): Cancel the idle handler here as well.
(shortcuts_drag_leave_cb): Test whether the idle is present.
(shortcuts_drag_data_received_cb): Ahem, don't assert here.
Federico Mena Quintero [Fri, 12 Mar 2004 00:03:48 +0000 (00:03 +0000)]
Put the trash icon on the right for LTR locales, or on the left for RTL.
2004-03-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
Put the trash icon on the right for LTR locales, or on the left
for RTL.
(shortcuts_drag_motion_cb): Cancel the idle handler here as well.
(shortcuts_drag_leave_cb): Test whether the idle is present.
Owen Taylor [Thu, 11 Mar 2004 22:57:10 +0000 (22:57 +0000)]
Clear preedit string and emit preedit_changed as needed on AIX. (#130617,
Thu Mar 11 17:51:10 2004 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c (preedit_done_callback):
Clear preedit string and emit preedit_changed as needed
on AIX. (#130617, Philip K Warren)
Morten Welinder [Thu, 11 Mar 2004 21:55:59 +0000 (21:55 +0000)]
Plug leak.
2004-03-11 Morten Welinder <terra@gnome.org>
* gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Plug leak.
Owen Taylor [Thu, 11 Mar 2004 21:38:21 +0000 (21:38 +0000)]
Fix attach/attach->parent type. (#136919, Tim Mooney)
Thu Mar 11 16:28:15 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_get_toplevel): Fix attach/attach->parent
type. (#136919, Tim Mooney)
Jonathan Blandford [Thu, 11 Mar 2004 21:23:16 +0000 (21:23 +0000)]
revert earlier change to insert_path so that we test that the directory
Thu Mar 11 16:18:51 2004 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert
earlier change to insert_path so that we test that the directory
exists.
* gtk/gtkfilechooserdialog.c
(gtk_file_chooser_dialog_constructor): move focus.
Matthias Clasen [Thu, 11 Mar 2004 21:10:49 +0000 (21:10 +0000)]
Use the same logic as GtkEntry when calculating border width. (#116368,
Thu Mar 11 22:12:14 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkspinbutton.c (gtk_spin_button_size_request): Use the same
logic as GtkEntry when calculating border width. (#116368, reported
by Morten Welinder)
Owen Taylor [Thu, 11 Mar 2004 21:06:16 +0000 (21:06 +0000)]
Use gtk_entry_set_width_chars() rather than gtk_widget_set_size_request().
Thu Mar 11 15:59:05 2004 Owen Taylor <otaylor@redhat.com>
* tests/testgtk.c (create_spins): Use gtk_entry_set_width_chars()
rather than gtk_widget_set_size_request().
Alessio Frusciante [Thu, 11 Mar 2004 20:57:03 +0000 (20:57 +0000)]
Corrected one string.
Raymond Penners [Thu, 11 Mar 2004 20:29:13 +0000 (20:29 +0000)]
0.5.4
Federico Mena Quintero [Thu, 11 Mar 2004 20:03:38 +0000 (20:03 +0000)]
New function, copied from gtkpathbar.c.
2004-03-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (remove_settings_signal): New
function, copied from gtkpathbar.c.
(gtk_file_chooser_default_dispose): Use remove_settings_signal()
rather than our own code.
(gtk_file_chooser_default_screen_changed): Use
remove_settings_signal(); this should handle per-screen settings
correctly.
Owen Taylor [Thu, 11 Mar 2004 19:10:09 +0000 (19:10 +0000)]
Fix a missing return value.
Thu Mar 11 14:07:18 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c (gtk_label_focus): Fix a missing return
value.
Owen Taylor [Thu, 11 Mar 2004 19:07:45 +0000 (19:07 +0000)]
Back out the put-labels-into-the-standard-focus-chain patches from bug
Thu Mar 11 13:58:24 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmessagedialog.c gtk/gtklabel.c: Back out the
put-labels-into-the-standard-focus-chain patches
from bug #59707.
* gtk/gtklabel.c (gtk_label_focus): Only put the
label in the tab chain when the control key is pressed.
Federico Mena Quintero [Thu, 11 Mar 2004 18:48:46 +0000 (18:48 +0000)]
Use a single OK button, not a Close button, as per the HIG.
2004-03-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (error_message_with_parent): Use a
single OK button, not a Close button, as per the HIG.
* gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Likewise.
Federico Mena Quintero [Thu, 11 Mar 2004 18:13:51 +0000 (18:13 +0000)]
Oops, initialize "action" before jumping. Fixes #136900.
2004-03-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_drag_motion_cb): Oops,
initialize "action" before jumping. Fixes #136900.
Mark McLoughlin [Thu, 11 Mar 2004 17:54:19 +0000 (17:54 +0000)]
don't overwrite application properties. Fixes bug #136802.
2004-03-11 Mark McLoughlin <mark@skynet.ie>
* gtk/gtksettings.c: (apply_queued_setting): don't overwrite
application properties. Fixes bug #136802.
Dov Grobgeld [Thu, 11 Mar 2004 15:42:49 +0000 (15:42 +0000)]
Added call to gtk_text_layout_update_cursor_line() to solve in problem of
2004-03-11 Dov Grobgeld <dov@imagic.weizmann.ac.il>
* gtk/gtktextlayer.c: (gtk_text_layout_set_buffer): Added
call to gtk_text_layout_update_cursor_line() to solve in
problem of switching keyboard direction at widget creation:
bug #136680
Owen Taylor [Thu, 11 Mar 2004 15:32:01 +0000 (15:32 +0000)]
Remove stray 'return' statement. (#136855, David L. Cooper II)
Thu Mar 11 10:28:30 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfilechooserembed.c (delegate_initial_focus): Remove
stray 'return' statement. (#136855, David L. Cooper II)
Vincent van Adrighem [Thu, 11 Mar 2004 15:25:50 +0000 (15:25 +0000)]
Translation updated by Tino Meinen.
2004-03-11 Vincent van Adrighem <adrighem@gnome.org>
* nl.po: Translation updated by Tino Meinen.
Miloslav Trmac [Thu, 11 Mar 2004 14:57:34 +0000 (14:57 +0000)]
Update Czech translation
Dmitry Mastrukov [Thu, 11 Mar 2004 13:35:33 +0000 (13:35 +0000)]
ru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>.
Mark McLoughlin [Thu, 11 Mar 2004 08:19:34 +0000 (08:19 +0000)]
Use the PRELIGHT fg color for drawing the expander when prelit. Fixes
2004-03-11 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkstyle.c: (gtk_default_draw_expander): Use the PRELIGHT
fg color for drawing the expander when prelit. Fixes problem
with the HighContrast theme: bug #136789.
Federico Mena Quintero [Thu, 11 Mar 2004 06:24:15 +0000 (06:24 +0000)]
Fix #135912 and #135913.
2004-03-11 Federico Mena Quintero <federico@ximian.com>
Fix #135912 and #135913.
* gtk/gtkfilechooserdefault.c
(shortcuts_filter_model_row_draggable): Implement.
(shortcuts_model_filter_new): New function, create a
ShortcutsModelFilterClass derived from GtkTreeModelFilter, so that
we can implement our own DnD interface methods.
(shortcuts_model_create): Use shortcuts_model_filter_new().
(shortcuts_list_create): Enable the shortcuts list as a drag
source.
(file_list_source_targets): Renamed from shortcuts_targets.
(shortcuts_list_create): Change the options for
gtk_drag_dest_set(). Connect to more drag signals so that we can
implement drops by hand.
(shortcuts_drag_data_delete_cb): New handler; just stop the emission.
(shortcuts_drag_motion_cb): New handler; validate the drop.
(shortcuts_drag_leave_cb): New handler; unset the drag_dest_row.
(shortcuts_drag_drop_cb): New handler; just stop the emission and
remove the idle handler for the drag cursor.
(shortcuts_add_bookmark_from_path): Add a position argument,
return a boolean success code.
(shortcuts_drag_data_received_cb): Handle two cases: 1) Insert
the bookmarks at the proper position, rather than always appending
them to the list; 2) alternatively, reorder the bookmarks.
(struct _GtkFileChooserDefault): New field shortcuts_drag_outside.
(shortcuts_drag_motion_cb): Turn off impl->shortcuts_drag_outside.
(shortcuts_drag_leave_cb): Turn on impl->shortcuts_drag_outside in
an idle handler.
(shortcuts_drag_end_cb): New handler; remove the selected bookmark.
Jonathan Blandford [Thu, 11 Mar 2004 06:08:28 +0000 (06:08 +0000)]
up the width of the entry a tad.
Thu Mar 11 01:08:25 2004 Jonathan Blandford <jrb@gnome.org>
* gtk/gtkfilechooserdefault.c (location_entry_create): up the
width of the entry a tad.
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use
gtk_entry_completion_selection_changed. Also, unref the
completion as we were leaking a reference to it.
Jonathan Blandford [Thu, 11 Mar 2004 03:48:26 +0000 (03:48 +0000)]
Sync from upstream
Wed Mar 10 22:48:15 2004 Jonathan Blandford <jrb@gnome.org>
* Sync from upstream
Federico Mena Quintero [Thu, 11 Mar 2004 01:16:09 +0000 (01:16 +0000)]
Remove spurious semicolon. Thanks to Kjartan Maraas for pointing it out.
2004-03-10 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkstyle.c (draw_dot): Remove spurious semicolon. Thanks to
Kjartan Maraas for pointing it out.
Matthias Clasen [Wed, 10 Mar 2004 22:42:48 +0000 (22:42 +0000)]
Set the background on the action view cell renderer here, not in init, so
Wed Mar 10 23:40:15 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentrycompletion.c (_gtk_entry_completion_popup): Set the background
on the action view cell renderer here, not in init, so that a) we catch
style changes, and b) we get the real style, not the default one.
Partial fix for #127648, reported by Dave Bordoley.
Tor Lillqvist [Wed, 10 Mar 2004 22:20:36 +0000 (22:20 +0000)]
Set also the pointer button bits. (#136636, Dave Neary)
2004-03-10 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
the pointer button bits. (#136636, Dave Neary)
* gdk/win32/gdkwindow-win32.c (show_window_internal): Show
transparent (input only) windows using SetWindowPos(). (#132331,
John Ehresman)
(gdk_window_set_type_hint): For splash screens, remove the resize
handles, menu, and minimize/maximize/close buttons. (#132896)
Matthias Clasen [Wed, 10 Mar 2004 21:28:10 +0000 (21:28 +0000)]
Keep the cell_list in a consistent state while iterating over it, since
Wed Mar 10 22:30:23 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear): Keep the
cell_list in a consistent state while iterating over it, since
clear_attributes() also iterates over it. (#136585, Morten Welinder)
Mətin Əmirov [Wed, 10 Mar 2004 20:39:13 +0000 (20:39 +0000)]
Translation updated.
2004-03-10 Mətin Əmirov <metin@karegen.com>
* az.po: Translation updated.
Mark McLoughlin [Wed, 10 Mar 2004 19:11:59 +0000 (19:11 +0000)]
don't propagate the expose to the label. The expose handler for
2004-03-10 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkexpander.c: (gtk_expander_expose): don't propagate
the expose to the label. The expose handler for GtkContainer
already does that. Fixes bug #136719. Reported by Dennis
Cranston, exact cause nailed down by Owen.
Federico Mena Quintero [Wed, 10 Mar 2004 18:35:07 +0000 (18:35 +0000)]
Use an untranslatable "%x" for dates, rather than a custom format. Fixes
2004-03-10 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (list_mtime_data_func): Use an
untranslatable "%x" for dates, rather than a custom format. Fixes
#136357.
Morten Welinder [Wed, 10 Mar 2004 17:58:56 +0000 (17:58 +0000)]
Add comment.
Morten Welinder [Wed, 10 Mar 2004 17:55:16 +0000 (17:55 +0000)]
Test validity of path here. (shortcuts_insert_path): Don't check here.
2004-03-10 Morten Welinder <terra@gnome.org>
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_add_shortcut_folder): Test validity of
path here.
(shortcuts_insert_path): Don't check here.
(get_file_info): Barf if name-only fails.
Maxim Dziumanenko [Wed, 10 Mar 2004 16:39:25 +0000 (16:39 +0000)]
Updated Ukrainian translation
2004-03-10 Maxim Dziumanenko <mvd@mylinux.com.ua>
* Updated Ukrainian translation
cinamod [Wed, 10 Mar 2004 15:20:45 +0000 (15:20 +0000)]
bump version #
Morten Welinder [Wed, 10 Mar 2004 14:56:28 +0000 (14:56 +0000)]
Add support for --multiple.
2004-03-10 Morten Welinder <terra@gnome.org>
* tests/testfilechooser.c (main): Add support for --multiple.
Maxim Dziumanenko [Wed, 10 Mar 2004 12:47:43 +0000 (12:47 +0000)]
Updated Ukrainian translation
2004-03-10 Maxim Dziumanenko <mvd@mylinux.com.ua>
* Updated Ukrainian translation